import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import get from '@dfeidao/atom-web/local/get';
import p001 from './p001';
export default async function a003(fd: IFeidaoAiBrowserComponent) {
	//渲染下拉框

	const val = get(fd, 'cs') as { risk_po_type_name: string };
	const val1 = val.risk_po_type_name;
	console.log("zhi ===>", val1);
	const risk_level = fd.data.node.querySelector<HTMLOptionElement>('[data-name="risk_level"]');

	console.log("zhizhzi===>", risk_level);

	if (risk_level) {
		return;
	}
	// 查询风险等级
	const res = await nodejs<{ res: Array<{}>; c: number; }>('risk_point/zj-000007/s001', {
		optional_value: ''

	});
	console.info("nishei", res);
	render(fd, res, p001, 'p001', 'inner');


}
